import sys
from sniffylib.core.constants import *

on_symbian = sys.platform == 'symbian_s60'
if on_symbian:
    import e32
    PLATFORM = PLATFORM_EMULATOR if e32.in_emulator() else PLATFORM_DEVICE
else:
    PLATFORM = PLATFORM_PC

if PLATFORM == PLATFORM_DEVICE:
    conf = 'config_device.py'
elif PLATFORM == PLATFORM_EMULATOR:
    conf = 'config_emulator.py'
else:
    conf = 'config_pc.py'

from sniffylib.util import platform
execfile(platform.get_resource_path(conf))